<table class="table table-striped table-bordered table-hover">

    <tr align="center">
        <th width="80" height="40">A&ccedil;&otilde;es</th>
        <th>Título</th>
        <th width="100">Tipo de mídia</th>
    </tr>

    <?php
    $sql = "SELECT * FROM midia 
    WHERE sta_id='1' AND not_id='{$_SESSION['not_id']}'
    ORDER BY mid_id DESC";
    $res = sql($sql);
    while($linha = mysql_fetch_array($res)) {
    ?>

    <tr>
        <td height="40" align="center">
          <p><input name="excluir[]" type="checkbox" value="<?=$linha['mid_id'];?>"/><i class="icon-trash"></i> Excluir</p>
          <p><a href="?pag=midia_alt&mid_id=<?=$linha['mid_id'];?>"><i class="icon-pencil"></i> Editar</a></p>
        </td>
        <td>
          <?php
          echo "<p>{$linha['mid_nome']}</p>";
          if ($linha['mid_tipo'] == "Imagem") {
            echo "<p><img src='{$linha['mid_url']}' alt='{$linha['mid_nome']}' title='{$linha['mid_nome']}' style='width:60%'></p>";
          } else {
            echo "<p><embed width='360' height='240' autoplay='false' loop='false' quality='high' src='{$linha['mid_url']}'></embed></p>";
          }
          ?>
        </td>
        <td><?=$linha['mid_tipo'];?></td>
    </tr>

    <?
    } 
    ?>
</table>